package com.ncui.wisdomLearn.api.dto;

import com.ncui.wisdomLearn.api.valid.RoleValidGroups;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色 DTO
 *
 * @author lvlele
 * @since 2025-01-03
 */
@Data
public class RoleDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    @NotNull(message = "角色ID不能为空", groups = RoleValidGroups.Update.class)
    private Long roleId;

    /**
     * 角色名
     */
    @NotBlank(message = "角色名不能为空", groups = { RoleValidGroups.Add.class})
    private String roleName;

    /**
     * 角色描述
     */
    private String roleDesc;
} 